import {MenuEntityPropNameEnum} from '../enums/menu-entity-prop-name.enum'

/**
 * 菜单表对应的实体类属性取值限制常量组成的对象
 */
export const MenuEntityPropValLimitConst = {
  [MenuEntityPropNameEnum.TYPE]: {
    values: [1, 2, 3, 4]
  },
  [MenuEntityPropNameEnum.NAME]: {
    minLength: 1,
    maxLength: 20
  },
  [MenuEntityPropNameEnum.PAGE_PATH]: {
    minLength: 1,
    maxLength: 255
  },
  [MenuEntityPropNameEnum.ROUTE_NAME]: {
    minLength: 1,
    maxLength: 50
  },
  [MenuEntityPropNameEnum.ROUTE_PATH]: {
    minLength: 1,
    maxLength: 255
  },
  [MenuEntityPropNameEnum.SORT]: {
    min: 0,
    max: Number.MAX_SAFE_INTEGER
  },
  [MenuEntityPropNameEnum.ICON_TYPE]: {
    values: [1, 2, 3]
  },
  [MenuEntityPropNameEnum.LABEL_SORT]: {
    min: 0,
    max: Number.MAX_SAFE_INTEGER
  }
};